import {
  request
} from "../../src/util/api";

// 新闻列表
export function newsListData(data) {
  return request({
    url: `/mini/news.News/newsList`,
    method: 'get',
    data,
    isJson: true
  })
}

export function newsInfo(data) {
  return request({
    url: `/mini/news.News/newsInfo`,
    method: 'get',
    data,
    isJson: true
  })
}

// 新闻搜索
export function newsSearch(data) {
  return request({
    url: `/mini/news.News/newsSearch`,
    method: 'get',
    data,
    isJson: true
  })
}